package com.share.tool.generator.api.config;

import com.share.tool.generator.api.model.Header;
import lombok.Data;

import java.util.LinkedList;
import java.util.List;

@Data
public class BaseInfo {
    private String protocol = "http";
    private String host = "127.0.0.1";
    private String port = "8888";
    private String context = "iov";
    private List<Header> headers;

    public BaseInfo() {
        headers = initHeader();
    }

    public List<Header> initHeader() {
        List<Header> list = new LinkedList<>();
        list.add(new Header("Content-Type", "application/json"));
        list.add(new Header("userId", "116"));
        list.add(new Header("userName", "346849"));
        list.add(new Header("userType", "1"));
        list.add(new Header("tenantId", "0"));
        list.add(new Header("idCard", null));
        return list;
    }
}
